package main

import (
	"demo/api"
	"net/http"

	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()

	r.GET("/check", func(ctx *gin.Context) {
		ctx.JSON(http.StatusOK, gin.H{
			"Msg": "200",
		})
	})
	r.GET("/info", api.GetNodesInfo)

	r.GET("/add", api.AddNode)

	r.GET("/update")

	r.Run()
}
